package com.ac.cv.client.menu;

import com.ac.cv.client.KeyWordsWidget;
import com.google.gwt.user.client.ui.TreeItem;

public class MenuItem extends TreeItem{

	public void setLabel(ClickableLabel label){
		super.setWidget(label);
		label.setTreeParent(this);
		KeyWordsWidget.getInstance().addKeyWord(label);
	}
	
	public void addChildLabel(ClickableLabel label){
		TreeItem item = new TreeItem(label);
		super.addItem(item);
		label.setTreeParent(item);
		KeyWordsWidget.getInstance().addKeyWord(label);
	}
}
